import Vue from 'vue'
import App from './App.vue'
import { router } from "./router"
// import Vant from 'vant';
import 'vant/lib/index.css';
import  './assets/font/iconfont.css'
import store from './store'
import './plugins/vant'
// import echarts from 'echarts'
// Vue.prototype.$echarts = echarts
//引入基本模板
let echarts = require('echarts/lib/echarts')

// 引入折线图等组件
require('echarts/lib/chart/line')
require('echarts/lib/chart/pie')


// 引入提示框和title组件，图例
require('echarts/lib/component/tooltip')
require('echarts/lib/component/title')
require('echarts/lib/component/legend')
// require('echarts/lib/component/legendScroll')//图例翻译滚动

Vue.prototype.$echarts = echarts

// Vue.config.productionTip = false
// Vue.use(Vant);
// new Vue({
//   render: h => h(App),
// }).$mount('#app')

new Vue({
  store,
  router,
  el: '#app',
  render: h => h(App)
});
